#ifndef ATTENDANCE_H
#define ATTENDANCE_H

#include <QWidget>
#include <QTableView>
#include <QSqlTableModel>
#include <QTcpServer>
#include <QTcpSocket>

namespace Ui {
class attendance;
}

class attendance : public QWidget
{
    Q_OBJECT

public:
    explicit attendance(QWidget *parent = 0);
    ~attendance();

private slots:
    void on_le_search_textChanged(const QString &arg1);
    void handleNewConnection();
    void handleReadyRead();
private:
    Ui::attendance *ui;
    QSqlTableModel *model;
    QSqlDatabase data_a;
    QTcpServer *m_server;
};

#endif // ATTENDANCE_H
